<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="static/vue-2.5.16.js"></script>

</head>
<body>
<div id="app">
    <h1>{{title}}</h1>
    <v1></v1>
</div>
<div id="app2">

</div>

</body>
</html>
<script>
    //注册全局组件
    Vue.component('v1', {
        template: '<h1>vue全局组件</h1>'
    });

    var app = new Vue({
        el: '#app',
        data: {
            title: 'hello'
        }
    });
    var app2 = new Vue({
        el: '#app2'
    });

</script>